package com.welike.shibo.eneity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * Created by fangyu on 2019-08-18.
 */
@Data
@TableName(value = "comments")
public class Comments {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 评论用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 被评论视频id
     */
    @TableField(value = "video_id")
    private String videoId;

    /**
     * 被@用户id
     */
    @TableField(value = "at_user_id")
    private String atUserId;

    /**
     * @类型，1为有，2为无
     */
    @TableField(value = "at_type")
    private Integer atType;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 评论点赞数
     */
    @TableField(value = "like_counts")
    private Integer likeCounts;

    /**
     * 回复内容
     */
    @TableField(value = "reply_content")
    private String replyContent;

    /**
     * 回复时间
     */
    @TableField(value = "reply_time")
    private Date replyTime;

    /**
     * 作者id
     */
    @TableField(value = "author_id")
    private String authorId;

    public static final String COL_ID = "id";

    public static final String COL_CONTENT = "content";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_VIDEO_ID = "video_id";

    public static final String COL_AT_USER_ID = "at_user_id";

    public static final String COL_AT_TYPE = "at_type";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_LIKE_COUNTS = "like_counts";

    public static final String COL_REPLY_CONTENT = "reply_content";

    public static final String COL_REPLY_TIME = "reply_time";

    public static final String COL_AUTHOR_ID = "author_id";
}